import App from "./App";
import Vue from "vue";
import uView from "@/uni_modules/uview-ui";
import DiyContainer from "./components/diy-container/diy-container";
import Auth from "./components/auth/auth";
import CacheUtil from "./common/cacheUtils";
import store from "./store";
import { upload } from "./common/request";
import PageCommon from "./common/pageCommon";
import utils from "./common/utils";

Vue.use(uView);
// 页面共通
Vue.mixin(PageCommon);

Vue.prototype.$cacheUtil = CacheUtil;
Vue.prototype.$utils = utils;
Vue.prototype.$store = store;
Vue.prototype.$upload = upload;
Vue.component("DiyContainer", DiyContainer);
Vue.component("Auth", Auth);

Vue.config.productionTip = false;
App.mpType = "app";
const app = new Vue({
  ...App,
  store
});

app.$mount();
